package com.alks.function.data.vo.biocontrol.deptwork;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: chen
 * @date: 2024/11/28
 * @description: 针车日报表VO
 */
@Data
@ApiModel(value = "针车日报表VO")
@AllArgsConstructor
public class ReportStitchDailyVO {

    @ApiModelProperty(value = "部门")
    private String deptName;

    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "鞋码")
    private List<String> poList;

    @ApiModelProperty(value = "订单数")
    private List<PoData> orderList;

    @ApiModelProperty(value = "预补数")
    private List<PoData> prefixList;

    @ApiModelProperty(value = "当日入库")
    private List<PoData> dailyList;

    @ApiModelProperty(value = "累计入库")
    private List<PoData> aggregateList;

    @ApiModelProperty(value = "欠数")
    private List<PoData> oweList;

    public ReportStitchDailyVO() {
        this.poList = new ArrayList<>();
        this.orderList = new ArrayList<>();
        this.prefixList = new ArrayList<>();
        this.dailyList = new ArrayList<>();
        this.aggregateList = new ArrayList<>();
        this.oweList = new ArrayList<>();
    }

    @Data
    public static class PoData {

        @ApiModelProperty(value = "鞋码")
        private String sizeNo;

        @ApiModelProperty(value = "数量")
        private Long qty;

        public PoData(String sizeNo, Long v) {
            this.sizeNo = sizeNo;
            this.qty = v;
        }
    }

}
